package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.ElectricitySplitMapper;
import com.isdepci.project.result.domain.ElectricitySplit;
import com.isdepci.project.result.service.IElectricitySplitService;

/**
 * 按温室气体种类划分的电力排放Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class ElectricitySplitServiceImpl implements IElectricitySplitService
{
    @Autowired
    private ElectricitySplitMapper electricitySplitMapper;

    /**
     * 查询按温室气体种类划分的电力排放
     */
    @Override
    public ElectricitySplit selectElectricitySplitById(Long id)
    {
        return electricitySplitMapper.selectElectricitySplitById(id);
    }

    /**
     * 查询按温室气体种类划分的电力排放列表
     */
    @Override
    public List<ElectricitySplit> selectElectricitySplitList(ElectricitySplit electricitySplit)
    {
        return electricitySplitMapper.selectElectricitySplitList(electricitySplit);
    }

    /**
     * 新增按温室气体种类划分的电力排放
     */
    @Override
    public int insertElectricitySplit(ElectricitySplit electricitySplit)
    {
        return electricitySplitMapper.insertElectricitySplit(electricitySplit);
    }

    /**
     * 修改按温室气体种类划分的电力排放
     */
    @Override
    public int updateElectricitySplit(ElectricitySplit electricitySplit)
    {
        return electricitySplitMapper.updateElectricitySplit(electricitySplit);
    }

    /**
     * 批量删除按温室气体种类划分的电力排放
     */
    @Override
    public int deleteElectricitySplitByIds(Long[] ids)
    {
        return electricitySplitMapper.deleteElectricitySplitByIds(ids);
    }

    /**
     * 删除按温室气体种类划分的电力排放信息
     */
    @Override
    public int deleteElectricitySplitById(Long id)
    {
        return electricitySplitMapper.deleteElectricitySplitById(id);
    }
}
